package com.example.SigninTest;


import static org.junit.Assert.*;

import org.openqa.selenium.*;
import org.openqa.selenium.interactions.Actions;
import org.testng.annotations.Test;

public class DropDownMenuTest extends Base {
	@Test
	public void dropDownMenuClick() throws Exception {
		driver.get("http://www.pb.com/smb");
		
		Thread.sleep(1000);
		WebElement menu = driver.findElement(By.xpath("//ul[@id='primary-nav']/li/a[.='Products']"));
		WebElement submenu = driver.findElement(By.xpath ("//div[@class='subpages']/h2/a[.='Products Overview']"));
		 Thread.sleep(2000);
		new Actions(driver).moveToElement(menu, 5,5).build().perform();
		
		submenu.click();
		 Thread.sleep(4000);
		// submenu.click();
		// Thread.sleep(4000);
		
	}
}
